@extends('admin/index')
@section('name')
    <h1><span class="label label-default"> 权限编辑  </span></h1>
    <hr>
    @foreach($result as $list)
    <div class="container">
        <div class="row">
            <div class="col-md-4 col-md-offset-4">
                <form class="form-horizontal" action="{{url('/per/upd')}}" method="post">
                    {{  csrf_field() }}
                    <div class="form-group">
                        <label for="inputEmail3" class="col-sm-2 control-label">NAME</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="per_name" placeholder="权限名" value="{{$list->per_name}}" disabled>
                            <input type="hidden" name="id" value="{{$list->id}}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="inputPassword3" class="col-sm-2 control-label">CONTOR</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="per_contor" placeholder="控制器" value="{{$list->per_contor}}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="inputPassword3" class="col-sm-2 control-label">FUNC</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="per_func" placeholder="方法" value="{{$list->per_func}}">
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-10">
                            <button type="submit" class="btn btn-default">SAVE</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
    @endforeach
@endsection

